<?php


class SelectCompanyUser extends Connection {
	private $conn;

	public function __construct() {
		Connection::init();
		$this->conn = $this->getConnection();
	}

	public function extractCompanyId($id){
		$stmt = $this->conn->prepare("	select company_id
											from company_user
											where user_id =  ? ");
		$stmt->bindValue(1, (int)$id, PDO::PARAM_INT);
		$stmt->execute();
		return $stmt->fetchAll(PDO::FETCH_ASSOC);
	}

}
?>